package thinkInJava.chap13String;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @description:
 * @author: Lisp
 * @time: 2020/9/17 9:39
 */
public class ReFlags {

//    public static void main(String[] args) {
//        String str = "java has regex\nJava has regex\n" +
//                "JAVA has pretty good regular expressions \n" +
//                "Regular expressions are in java";
//        Pattern p = Pattern.compile("^java", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);
//        Matcher m = p.matcher(str);
//        while (m.find()) {
//            System.out.println(m.group());
//        }
//    }
}
